﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using FinModel;

namespace FinMath
{
    [TestClass]
    public class YieldCurveTest
    {
        [TestMethod]
        public void YieldCurve_Ctor_Test()
        {
            YieldCurve yieldCurve = new YieldCurve(
                new Tuple<double, double>(1, 5.8),
                new Tuple<double, double>(2, 6.8));
            Assert.AreEqual(2.9, yieldCurve[0.5]);
        }
    }
}
